using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;

namespace <Application>.Models
{
    [Table("<TableU>", Schema="<OwnerU>")]
    public class <OwnerU>_<TableU>
    {
    <If Loop>
      <IsPKey>
        [Key]
        [Column(Order = <iVarA>)]
        <iVarA=+[1]>
      <IsNotNull>
        [Required]
      <IsDateTimePicker>
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
      <IsMoney>
        [DataType(DataType.Currency)]
      <IsChar>
        [StringLength(<Length>)]
      <IsNChar>
        [StringLength(<Length>)]
      <IsVarChar>
        [StringLength(<Length>)]
      <IsNVarChar>
        [StringLength(<Length>)]
      <IsNullable>
      <And>
      <IsNull>
        [Display(Name = "<FieldC>")]
        public <VBType>? <FieldU> { get; set; }

      <IsNullable>
      <And>
      <IsNotNull>
        [Display(Name = "<FieldC>")]
        public <VBType> <FieldU> { get; set; }

      <IsNotNullable>
        [Display(Name = "<FieldC>")]
        public <VBType> <FieldU> { get; set; }

    </If Loop>
    }
}